This talk was recorded at NDC TechTown in Kongsberg, Norway. #ndctechtown #ndcconferences #developer #softwaredeveloper
Attend the next NDC conference near you:
Subscribe to our YouTube channel and learn every day:
/ @NDC
Follow our Social Media!
#cplusplus
std::expected is a powerful abstraction for error handling and chaining computations introduced in the C++ 23 standard. Even though this abstraction is relatively new in the C++ ecosystem, it already has several issues, particularly when used as the primary error-handling mechanism in large code bases.
This talk will focus on the most significant practical challenges faced when working with std::expected, providing insights into common pitfalls and offering potential solutions. While some of these challenges are addressed in separate libraries, others are not. Much of the functionality discussed in this talk is not available in the standard library. However, I’ll demonstrate real-world code samples and point to open-source helper utilities that address some of these gaps.
This talk will be useful for software engineers looking to understand the limitations of std::expected, explore possible workarounds, and even contribute to the evolution of this abstraction by submitting proposals for future improvements.
Preliminary outline
1. Briefly about std::expected
2. Issue #1: The same type of error and value are allowed
3. Issue #2: A can of worms: having monadic and regular interface altogether
4. Iss
|
Accelerators are getting faster, but is ...
For more details on this topic, visit th...
model that works best for your needs and...
Celebrate 10 years of Keras! 🎉 In this s...
Are you exploring JAX for the first time...
For more details on this topic, visit th...
Learn how Chrome handles permission upda...
CSS Selector Cheat Sheet: []( Web Dev Ro...
Building a recipe app? Stop worrying abo...
In this Python FastAPI tutorial, we'll b...
🔥AI-Powered Digital Marketing Certificat...
For only $1, you can claim a 1GB Residen...
WithSecure transformed threat analysis b...
🔥PGP in Generative AI and ML in collabor...
Looking to streamline your development p...